<?php 
/* SVN FILE: $Id$ */
/* UserAddress Test cases generated on: 2009-05-18 13:05:09 : 1242667149*/
App::import('Model', 'UserAddress');

class UserAddressTestCase extends CakeTestCase {
	var $UserAddress = null;
	var $fixtures = array('app.user_address', 'app.user', 'app.region', 'app.user');

	function startTest() {
		$this->UserAddress =& ClassRegistry::init('UserAddress');
	}

	function testUserAddressInstance() {
		$this->assertTrue(is_a($this->UserAddress, 'UserAddress'));
	}

	function testUserAddressFind() {
		$this->UserAddress->recursive = -1;
		$results = $this->UserAddress->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('UserAddress' => array(
			'id'  => 1,
			'address_name'  => 'Lorem ipsum dolor sit amet',
			'email'  => 'Lorem ipsum dolor sit amet',
			'consignee'  => 'Lorem ipsum dolor sit amet',
			'address'  => 'Lorem ipsum dolor sit amet',
			'zipcode'  => 'Lorem ipsum dolor sit amet',
			'tel'  => 'Lorem ipsum dolor sit amet',
			'mobile'  => 'Lorem ipsum dolor sit amet',
			'sign_building'  => 'Lorem ipsum dolor sit amet',
			'best_time'  => 'Lorem ipsum dolor sit amet',
			'user_id'  => 1,
			'region_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>